/*#include "thread_list.h"


ThreadList::ThreadList()
{
	size = 0;
	first.value = NULL;
	first.next = NULL;
}


ThreadList::~ThreadList()
{
	if (first.value)
	{
		ThreadListNode *pre, *post = &first;

		while (post->next)
		{
			pre = post;
			post = post->next;
			delete pre->value;
		}

		delete post->value;
	}
}


void ThreadList::push(WorkerThread *value)
{
	ThreadListNode node;
	node.next = &first;
	node.value = value;
	first = node;
	size++;
}


WorkerThread* ThreadList::pop()
{
	WorkerThread *value = first.value;
	first.value = NULL;

	if (first.next)
		first = *(first.next);

	return value;
}


unsigned int ThreadList::get_size()
{
	return size;
}
*/